<?php

namespace App\Admin\Tools\Customer;

use Encore\Admin\Grid\Tools\AbstractTool;
use Illuminate\Support\Facades\Log;

class CustomerFollowUpTool extends AbstractTool
{
    private int $id;
    private string|null $mobile;
    private string|null $wechat;
    private string|null $remark;
    private array $extend;

    public function __construct(int $id, string|null $mobile, string|null $wechat, string|null $remark, array $extend)
    {
        $this->id = $id;
        $this->mobile = $mobile;
        $this->wechat = $wechat;
        $this->remark = $remark;
        $this->extend = $extend;
    }

    /**
     * @inheritDoc
     */
    public function render()
    {
        return view('customer.follow_up', [
            'id' => $this->id,
            'mobile' => $this->mobile,
            'wechat' => $this->wechat,
            'remark' => $this->remark,
            'extend' => $this->extend
        ]);
    }
}
